package com.yoso.shop.infrastructure.dao.commodity;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.commodity.CommodityBranchEntity;
import com.yoso.shop.domain.commodity.CommodityBranchEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CommodityBranchEntityMapper extends BaseMapper<CommodityBranchEntity, CommodityBranchEntityExample> {
    @Override
    long countByExample(CommodityBranchEntityExample example);

    @Override
    int deleteByExample(CommodityBranchEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(CommodityBranchEntity record);

    @Override
    int insertSelective(CommodityBranchEntity record);

    @Override
    List<CommodityBranchEntity> selectByExample(CommodityBranchEntityExample example);

    @Override
    CommodityBranchEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") CommodityBranchEntity record, @Param("example") CommodityBranchEntityExample example);

    @Override
    int updateByExample(@Param("record") CommodityBranchEntity record, @Param("example") CommodityBranchEntityExample example);

    @Override
    int updateByPrimaryKeySelective(CommodityBranchEntity record);

    @Override
    int updateByPrimaryKey(CommodityBranchEntity record);
}